package com.ny.zmb.openapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ny.zmb.openapi.controller.entity.Result;
import com.ny.zmb.openapi.entity.PmOrderRefundLog;
import com.ny.zmb.openapi.ysutil.from.BizReqJsonCollege.BizReqJson;
import com.ny.zmb.openapi.ysutil.from.BizReqJsonCollege.BizReqJsonRefund;

/**
 * 退款订单
 *
 * @author ChenZhiZheng
 * @date 20241107
 */
public interface PmOrderRefundLogService extends IService<PmOrderRefundLog> {
    PmOrderRefundLog getByOrigRequestNo(String origRequestNo);

    PmOrderRefundLog getByRequestNo(String requestNo);

    /**
     * 退款
     *
     * @param srcMerchantNo
     * @param obj
     * @return
     */
    Result refund(String srcMerchantNo, BizReqJsonRefund obj);

    /**
     * 退款查询
     *
     * @param srcMerchantNo
     * @param obj
     * @return
     */
    Result queryTradeRefund(String srcMerchantNo, BizReqJsonRefund obj);
}
